package cn.tedu.charging.common.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum GunStatusEnum {
    //定义不同status状态码的 枚举对象4个
    //1 空闲
    FREE(1,"充电枪空闲中"),
    //2 使用中
    USING(2,"充电枪使用中"),
    //3 离线
    OFFLINE(3,"充电枪不在线"),
    //4 故障
    FAULT(4,"充电枪已故障"),
    ;

    //当前枪状态类型,可以成员变量
    private Integer status;
    private String desc;//对于状态数据描述信息

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
